import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import echarts from 'echarts'
import '../theme/index.css'
import '@/assets/font/iconfont.css'
import '@/assets/css/reset.css'
import '@/assets/css/style.css'
import {postRequest, getRequest,loginRequest,uploadFileRequest,putRequest,deleteRequest} from '@/api/request'
import {getDictionary} from '@/api/common'
import VueAMap from 'vue-amap'
import md5 from 'js-md5';
import Cookies from 'js-cookie'

Vue.prototype.postRequest = postRequest
Vue.prototype.getRequest = getRequest
Vue.prototype.loginRequest = loginRequest
Vue.prototype.uploadFileRequest = uploadFileRequest
Vue.prototype.putRequest = putRequest
Vue.prototype.deleteRequest = deleteRequest
Vue.prototype.echarts = echarts
Vue.prototype.$md5 = md5
Vue.prototype.getDictionary=getDictionary
Vue.prototype.$Cookies=Cookies

Vue.config.productionTip = false

Vue.use(ElementUI)

// 使用地图
Vue.use(VueAMap);
// 初始化vue-amap
VueAMap.initAMapApiLoader({
// 申请的高德key
key: '89339ee80ce840e6b2e716c1302c61b6',
// 插件集合
plugin: ['Autocomplete', 'PlaceSearch', 'Scale', 'OverView', 'ToolBar', 'MapType', 'PolyEditor', 'AMap.CircleEditor']
});
// Vue.component('footer-copyright', {
//   template: '<p class="footer-msg">&copy;CopyRight 2018中移物联网 版本：v1.0.2</p>'
// });
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
